<%@page import="org.prs.model.User"%>
<%
    User loggedInUser = (User) session.getAttribute("loggedinuser");

    if (loggedInUser == null) {
        session.setAttribute("loginmsg", "<div id='loginmsg'>Please log in to use services</div>");
        response.sendRedirect("index.jsp");
    }
    request.setAttribute("loggedInUser", loggedInUser);
%>
<div class="navigation">
    <div class="navhead">Welcome </div>
    <div id='welcomemsg'>Welcome ${loggedInUser.firstName} ${loggedInUser.lastName}</div>
    <a href="loginlogout?action=logout">Log Out</a>
</div>
